package com.example.demo.service;

import com.example.demo.dao.CommonRepository;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author: Pinp
 * @Date: 2021/7/21 0:24
 */

@Slf4j
@Service
public class CommonService {
    @Resource
    private CommonRepository commRepository;

    public String getInfo(){
        String res = commRepository.test();
        log.info(res);
        List<?> list = commRepository.test2();
        log.info(list.toString());
        return res;
    }
}
